package com.designpattern.obeserver.method2;

/**
 * @author: guoqiang.lv
 * @date: 2019/6/18
 * @description:
 */
public class Test {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        DisplayElement displayElement = new CurrentConditionsDisplay(weatherData);
        weatherData.setMeasurements(1.0f, 2.0f, 3.0f);
        weatherData.measurementsChanged();
    }
}
